<template>
    <div>
        <table align='center'>
            <tr>
                <td>开始时间</td>
                <td>结束时间</td>
                <td>花费</td>
            </tr>
            <tr v-for="i in list_" :key="i.id">
                <td>{{i.start}}</td>
                <td>{{i.end}}</td>
                <td>{{i.money}}</td>
            </tr>
        </table>
    </div>
</template>

<script>
import axios from 'axios'
export default {
    data () {
        return {
            list_:[],
            id:localStorage.getItem('id'),
            name:localStorage.getItem('name')
        }
    },
    created () {
        axios.get('127.0.0.1:8000/user/start/').then((res)=>{
            this.list_ = res.data
        })
    }
}
</script>

<style>

</style>